// -*- c-basic-offset: 2 default-tab-width: 2 indent-tabs-mode: t -*-
// vim: autoindent tabstop=2 noexpandtab shiftwidth=2 softtabstop=2
//===------------ Promise.cpp
//
//             This file is part of the reactor project
//                Author: R-Core Team
//
//===---------------------------------------------------------------------===//

#include "Promise.h"

using namespace R;

Promise* Promise::doNew(FunInfo *fun, EnvInfo* _envInfo) {
	R_VAR(Promise*, res);
	res = static_cast<Promise*>(Promise::operator new(sizeof(Promise), virtualVT));
	res->fun = fun;
	res->envInfo = _envInfo;
	res->value = NULL;
	return res;
}
